﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProdutcDetail.ascx.cs" Inherits="ProdutcDetail" %>
<fshop:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>      

    <asp:FormView runat="server" ID="frvProductDetail" >  
   
    <ItemTemplate>
        <table>
            <tr>
                <td align="center" rowspan="2" style="width: 150px">
                    <asp:Image ID="Image1" runat="server" Height="200" 
                ImageUrl='<%# "~/Images/Product/"+ Eval("Pro_Image") %>' Width="150" />
                </td>
                <td colspan="2" style="width:70%" class="style8">
                    <asp:Label ID="Pro_NameLabel" runat="server" 
                Text='<%# Eval("Pro_Name") %>' Font-Size="14px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="width:70%">
                    <asp:Label ID="Pro_ContentLabel" runat="server" 
                Text='<%# Eval("Pro_Intro") %>' Font-Size="12px"></asp:Label>
                    
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px;">
                    &nbsp;
                    <asp:Label ID="mieuta" runat="server" 
                Text='<%# Eval("Pro_Content") %>' Font-Size="12px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="gia">                   
                    <asp:Label ID="Pro_PriceLabel" runat="server" 
                        ForeColor="Red" Text='<%# Eval("Pro_Price") %>'></asp:Label>
                    <asp:Label ID="lblvnd" runat="server" Font-Bold="False" 
                ForeColor="Red" Text="VND"></asp:Label>
                </td>
                <td>                    
                     <a href='Basket.aspx?Cate_ID=<%# Eval("Cate_ID") %>&Product_ID=<%# Eval("Pro_ID") %>'>
                        <img src="images/shopcart2.gif" border="0"/>
                    </a>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3" style="height: 10px">
                    <asp:Image ID="Image4" runat="server" Height="3px" 
                ImageUrl="~/images/p2.jpg" Width="470px" />
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3" style="height: 10px">
                </td>
            </tr>
        </table>
    </ItemTemplate>
     </asp:FormView>


<asp:DataList ID="dtlComments" runat="server">
    <ItemTemplate>
        <table>
            <tr>
                <td colspan="3" style="width: 443px">
                    &nbsp;<img src="images/tick_32.png" style="width: 18px; height: 15px;font-size:11px" />
                    <asp:Label ID="Com_ContentLabel" runat="server" Text='<%# Eval("Com_Title") %>'></asp:Label></td>
            </tr>
            <tr>
                <td colspan="3" style="width: 443px; height: 21px;font-size:11px">
                    <asp:Label ID="Com_EmailLabel" runat="server" Text='<%# Eval("Com_Desc") %>'></asp:Label>&nbsp;
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>

<table>
    <tr>
        <td colspan="3" style="width: 492px">
            <table style="width: 465px">
                <tr>
                    <td colspan="2" style="width: 466px; height: 29px;">
                        <asp:Label ID="lbltieude" runat="server" Font-Italic="True" Font-Size="Large" ForeColor="#804000"
                            Text="Ý kiến của bạn"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="width: 466px">
                        <asp:Label ID="lblemail" runat="server" Text="Tiêu đề :"></asp:Label>
                        <asp:TextBox ID="txtEmail" runat="server" Width="80%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="Tiêu đề không được trống">
                            </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="width: 466px">
                        <asp:TextBox ID="txtcontent" runat="server" TextMode="MultiLine" Width="463px" Height="193px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2" style="width: 466px; height: 26px;">                                        
                        <asp:Button ID="btnSend" runat="server"  Text="Gửi ý kiến" OnClick="btnSend_Click" />
                        <%--<input id="Button1" type="submit" value="button" runat="server" onserverclick="btnSend_Click" />--%>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    </table>      
<br />

<asp:DataList ID="DataList2" runat="server" RepeatColumns="2">
    <ItemTemplate>
        <table>
            <tr>
                <td align="center" style="width: 172px" >
                    <a href='ProductDetail.aspx?Cate_ID=<%# Eval("Cate_ID") %>&Product_ID=<%# Eval("Pro_ID") %>' style="text-decoration:none;">
                       <span class="style8"> <%# Eval("Pro_Name") %>'</span>
                    </a>
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 172px">
                    <a href='ProductDetail.aspx?Cate_ID=<%# Eval("Cate_ID") %>&Product_ID=<%# Eval("Pro_ID") %>'>
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# "~/images/Product/"+Eval("Pro_Image") %>'
                            Width="150" Height="200" />
                    </a>
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 172px">
                    <asp:Label ID="lblgia" runat="server" ForeColor="Red" Text="Giá: "></asp:Label>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Pro_Price") %>' ForeColor="Red"></asp:Label>
                    <asp:Label ID="lblvnd" runat="server" ForeColor="Red" Text="VNĐ"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 172px; height: 24px">
                    <a href='Basket.aspx?Cate_ID=<%# Eval("Cate_ID") %>&Product_ID=<%# Eval("Pro_ID") %>'>
                        <asp:Image ID="Image2" runat="server" ImageUrl="~/images/shopcart2.gif" />
                    </a>
                    <a href='ProductDetail.aspx?Product_ID=<%# Eval("Pro_ID") %>'>
                        <asp:Image ID="Image3" runat="server" ImageUrl="~/images/chitiet.gif" />
                    </a>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
</ContentTemplate>
<Triggers>
    <fshop:AsyncPostBackTrigger ControlID="btnSend" EventName="Click" />
</Triggers>
</fshop:UpdatePanel>
